﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Home.Master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="RealtorsPortal.Default1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHeader" runat="server">
    <title>Realtors portal</title>
    <script type="text/javascript">
        $(document).ready(function () {
            $("a[title='Home']").css("color", "#0080FF");
            $("a[title='Home']").parent().css("background", "black");
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphWrapper" runat="server">
    <div class="left_box">
        <div class="left_title">
            <img src="images/bg_left_title.png" />
        </div>
        <!--End #left_featured -->
        <div class="left_container">
            <div class="title">
                <span>VIP Ads</span>
            </div>
            <!--End .title -->
            <asp:ListView ID="lvwVipAds" runat="server">
                <ItemTemplate>
                    <div class="property_box">
                        <div class="property_image">
                            <a href='Detail.aspx?AdvId=<%#Eval("AdvId") %>'>
                                <img src="<%#Eval("ImageUrl") %>" title='<%#Eval("Title") %>' alt='<%#Eval("Title") %>' /></a>
                        </div>
                        <!--End .property_image -->
                        <div class="property_information">
                            <div class="property_title">
                                <a href='Detail.aspx?AdvId=<%#Eval("AdvId") %>' title='<%#Eval("Title") %>'>
                                    <%#Eval("CategoryName") %>:
                                    <%#Eval("Title") %></a>
                            </div>
                            <!--End .property_title -->
                            <div class="property_address">
                                Add:
                                <%#Eval("Address") %>,
                                <%#Eval("DistrictName") %>,
                                <%#Eval("CityName") %>
                            </div>
                            <!--End .property_address -->
                            <div class="property_price">
                                Price:
                                <%#Eval("Price") %>
                                $
                            </div>
                            <!--End .property_price -->
                        </div>
                        <!--End .property_information -->
                    </div>
                    <!--End .property_box -->
                </ItemTemplate>
            </asp:ListView>
            <div class="lv_pager">
                <asp:DataPager ID="DataPager1" QueryStringField="vipadspage" PageSize="4" PagedControlID="lvwVipAds"
                    runat="server">
                    <Fields>
                        <asp:NumericPagerField ButtonType="Link" />
                        <asp:NextPreviousPagerField ButtonType="Button" RenderNonBreakingSpacesBetweenControls="true"
                            FirstPageText="First" LastPageText="Last" NextPageText="Next" PreviousPageText="Back"
                            ShowFirstPageButton="true" ShowLastPageButton="true" ShowNextPageButton="true"
                            ShowPreviousPageButton="true" />
                    </Fields>
                </asp:DataPager>
            </div>
        </div>
        <!--End .left_container -->
    </div>
    <!--End .left_box -->
    <div class="right_box">
        <div class="left_title">
            <img src="images/bg_left_title.png" />
        </div>
        <!--End #left_featured -->
        <div class="right_container">
            <div class="title">
                <span>NEWS</span>
            </div>
            <!--End .title -->
            <marquee behavior="scroll" direction="up" scrollamount="1" scrolldelay="1" width="100%"
                height="300" onmouseover="this.stop()" onmouseout="this.start()">
            <ul id="ul_news">
                <li>
                    <div class="news_title"><a href="#" tite="">Property sale off 50%</a></div><!--End .news_title -->
                    <div class="news_date">05/04/2013</div><!--End .news_date -->
                </li>

                <li>
                    <div class="news_title"><a href="#" tite="">Property sale off 50%</a></div><!--End .news_title -->
                    <div class="news_date">05/04/2013</div><!--End .news_date -->
                </li>

                <li>
                    <div class="news_title"><a href="#" tite="">Property sale off 50%</a></div><!--End .news_title -->
                    <div class="news_date">05/04/2013</div><!--End .news_date -->
                </li>

                <li>
                    <div class="news_title"><a href="#" tite="">Property sale off 50%</a></div><!--End .news_title -->
                    <div class="news_date">05/04/2013</div><!--End .news_date -->
                </li>

                <li>
                    <div class="news_title"><a href="#" tite="">Property sale off 50%</a></div><!--End .news_title -->
                    <div class="news_date">05/04/2013</div><!--End .news_date -->
                </li>
            </ul>
            </marquee>
        </div>
        <!--End #quangcao -->
    </div>
    <!--End #quangcao_box -->
    <div class="left_box">
        <div class="left_title">
            <img src="images/bg_left_title.png" />
        </div>
        <!--End #left_featured -->
        <div class="left_container">
            <div class="title">
                <span>Property ads</span>
            </div>
            <!--End .title -->
            <asp:ListView ID="lvwNormalAds" runat="server">
                <ItemTemplate>
                    <div class="property_box">
                        <div class="property_image">
                            <a href='Detail.aspx?AdvId=<%#Eval("AdvId") %>'>
                                <img src="<%#Eval("ImageUrl") %>" title='<%#Eval("Title") %>' alt='<%#Eval("Title") %>' /></a>
                        </div>
                        <!--End .property_image -->
                        <div class="property_information">
                            <div class="property_title">
                                <a href='Detail.aspx?AdvId=<%#Eval("AdvId") %>' title="<%#Eval("Title") %>">
                                    <%#Eval("CategoryName") %>:
                                    <%#Eval("Title") %></a>
                            </div>
                            <!--End .property_title -->
                            <div class="property_address">
                                Add:
                                <%#Eval("Address") %>,
                                <%#Eval("DistrictName") %>,
                                <%#Eval("CityName") %>
                            </div>
                            <!--End .property_address -->
                            <div class="property_price">
                                Price:
                                <%#Eval("Price") %>
                                $
                            </div>
                            <!--End .property_price -->
                        </div>
                        <!--End .property_information -->
                    </div>
                    <!--End .property_box -->
                </ItemTemplate>
            </asp:ListView>

            <div class="lv_pager">
                <asp:DataPager ID="DataPager2" QueryStringField="adspage" PageSize="4" PagedControlID="lvwNormalAds"
                    runat="server">
                    <Fields>
                        <asp:NumericPagerField ButtonType="Link" />
                        <asp:NextPreviousPagerField ButtonType="Button" RenderNonBreakingSpacesBetweenControls="true"
                            FirstPageText="First" LastPageText="Last" NextPageText="Next" PreviousPageText="Back"
                            ShowFirstPageButton="true" ShowLastPageButton="true" ShowNextPageButton="true"
                            ShowPreviousPageButton="true" />
                    </Fields>
                </asp:DataPager>
            </div>

        </div>
        <!--End #advertisement -->
    </div>
    <!--End #advertisement_box -->
    <div class="right_box">
        <div class="left_title">
            <img src="images/bg_left_title.png" />
        </div>
        <!--End #left_featured -->
        <div class="right_container">
            <div class="title">
                <span>SERVICES</span>
            </div>
            <!--End .title -->
            <div class="service_box">
                <div class="service_title">
                    FREE
                </div>
                <!--End .service_title -->
                <div class="service_info">
                    Number of images: 3.<br />
                    Duration: 10 days.
                </div>
                <!--End .service_info -->
            </div>
            <!--End .service_box -->
            <div class="service_box">
                <div class="service_title">
                    VIP 1
                </div>
                <!--End .service_title -->
                <div class="service_info">
                    Number of images: 5.<br />
                    Duration: 20 days.
                </div>
                <!--End .service_info -->
            </div>
            <!--End .service_box -->
            <div class="service_box">
                <div class="service_title">
                    VIP 2
                </div>
                <!--End .service_title -->
                <div class="service_info">
                    Number of images: 7.<br />
                    Duration: 30 days.
                </div>
                <!--End .service_info -->
            </div>
            <!--End .service_box -->
        </div>
        <!--End #services -->
    </div>
    <!--End #service_box -->
</asp:Content>
